/*
 * read.c
 *
 *  Created on: 2009-5-28
 *      Author: root
 */
#include "mysocket.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>


/* when get fin, tcp_input should put EOF(-1?) into fifo,
 * in fact, i have no idea whether this will work.
 */

int readfromsocket(int sockfd,char *buf,int bufsize){
	int rv;
	rv=read(sockfd,buf,bufsize);
	return rv;
}
